<extend name="public/base"/>

<block name="content">
        <!-- Contents -->
      <ul class="nav nav-tabs">
        
        <li><a href="{:U('Daike/index')}">代课登记</a></li>
        <li><a href="{:U('Daike/search')}">代课统计</a></li>
        <li><a href="{:U('Daike/show')}">代课情况</a></li>
        <li class="active"><a href="{:U('Daike/edit')}">编辑代课登记</a></li>
      </ul>
        <h3><a href="__SELF__">修改代课登记</a></h3>
      
        <form method='post' id="form" name="form"  action="" class="form-horizontal">
        <div class="form-group">
            <label class="col-sm-2 control-label">班级：</label>
            <div class="controls">
                <input type="text" class="text input-large" name="grade" value="{$cur.class}">
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">教师：</label>
            <div class="controls">
                <input type="text" class="text input-large" name="teacher" value="{$cur.teacher}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">代课日期：</label>
            <div class="controls">
                <input type="text" class="text input-large" name="d_date" value="{$cur.d_date}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">节次：</label>
            <div class="controls">
                <input type="text" class="text input-large" name="d_jieci" value="{$cur.d_jieci}">
                <span class="check-tips">（周几第几节）</span>
            </div>
        </div>
         <div class="form-group">
            <label class="col-sm-2 control-label">代课类别：</label>
            <div class="controls">
                <input type="text" class="text input-large" name="category" value="{$cur.category}">
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">上报日期</label>
            <div class="controls">
                <input type="text" class="text input-large" name="update" value="{$cur.update_time|date='Y-m-d',###}">
            <span class="check-tips">（上报日期不能修改）</span>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">节数：</label>
            <div class="controls">
                <input type="text" class="text input-large" name="number" value="{$cur.number}">
                <span class="check-tips">（请填写数字）</span>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-offset-1 col-sm-4 control-label">代课事由<span class="check-tips">（请填写代课事由后按确定保存）</span></label>
            <div class="col-sm-offset-1 col-sm-8 controls">
                 <textarea name="shiyou" class="text input-large">{$cur.shiyou}</textarea>
              {:hook('adminArticleEdit', array('name'=>'shiyou','value'=>$data['shiyou']))}
            </div>
        </div>

        
        <div class="form-group">
            <input type="hidden" name="id" value="{$cur.id}">
            <div class="col-sm-offset-1 col-sm-1">
            <button class="btn btn-primary" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            </div>
            <div class="col-sm-1">
            <button class="btn btn-danger btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
            </div>
        </div>
        </form>

</block>